﻿<!DOCTYPE html>

<html>
<head>
    <meta charset="utf-8" />
    <title>已登录信息</title>
    <script>        
        window.onload = function () {
            var weappCookie = getCookie("bma");
            console.log("登录成功：" + weappCookie);
        }


        //获取cookie
        function getCookie(name) {
            var arr = document.cookie.match(new RegExp("(^| )" + name + "=([^;]*)(;|$)"));
            if (arr != null) return unescape(arr[2]); return null;
        }
    </script>
</head>
<body>
</body>
</html>